package com.guli.gulimall.gulimallproduct.feign;

import com.guli.common.utils.R;
import com.guli.to.es.SkuEsModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimallES")
@RequestMapping("search")
public interface ElassticFeignService {
    @ApiOperation("保存数据")
    @PostMapping("/sava")
    public R elasticSava(@RequestBody List<SkuEsModel> esModels);
}
